package link.anyauto.fsmgr.biz.main;

import java.util.List;

import link.anyauto.fsmgr.FsmgrApp;
import link.anyauto.fsmgr.R;
import link.anyauto.fsmgr.vo.FunctionGroupVO;

/**
 * Created by Administrator on 2016/7/17.
 */
public class MainVM {

    public String getAccountLabel() {
        return FsmgrApp.stringRes(R.string.main_label, account);
    }

    public List<FunctionGroupVO> getGroups() {
        return groups;
    }

    public String getAction(int gpos, int cpos) {
        return groups.get(gpos).getFuncs().get(cpos).getAction();
    }

    public String account;
    public List<FunctionGroupVO> groups;
}
